package edu.whu;

public class BeanDefinitionException extends Exception{
    public enum  ErrorType {FILE_NOTFOUND,XML_READ_ERROR,DOCUMENT_CREAT_ERROR,CLASS_NOT_FOUND,CREAT_OBJECT_ERROR,NO_SUCH_FIELD,NO_SETTER_METHOD};
    private ErrorType errorType;
    public BeanDefinitionException(ErrorType errorType,String message){
        super(message);
        this.errorType = errorType;
    }
    public ErrorType getErrorType(){
        return errorType;
    }
}
